<%-- 
    Document   : InscriptionAgence
    Created on : 28 juil. 2008, 00:37:20
    Author     : Mathieu
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <f:view>
            <h:form>
            
                <h1>Creation d'un compte client Agence</h1>                         
                
                <h:messages layout="list" />
                <fieldset>
                    <legend>Informations</legend>
                    
                    <dl>
                        <dt>Nom de votre agence :</dt>
                        <dd>
                            <h:inputText readonly="#{InscriptionAgenceBean.agence.idAgence!=null}" id="txtLogin" value="#{InscriptionAgenceBean.agence.nom}" required="true" requiredMessage="nom obligatoire"/>
                        </dd>
                        <dd>
                            <h:commandButton rendered="#{InscriptionAgenceBean.agence.idAgence==null}" value="Inscription" action="#{InscriptionAgenceBean.enregistrer}" />
                        </dd>
                            
                        
                    </dl>
                </fieldset>
                <h:panelGroup rendered="#{InscriptionAgenceBean.agence.idAgence!=null}">
                    <fieldset>
                        <legend>Informations d'identification</legend>
                        
                        <dl>
                            <dt>Votre login :</dt>
                            <dd>
                                <h:inputText readonly="true" value="#{InscriptionAgenceBean.agence.login}" />
                            </dd>
                             <dt>Votre mot de passe :</dt>
                            <dd>
                                <h:inputText readonly="true" value="#{InscriptionAgenceBean.agence.password}" />
                            </dd>
                        </dl>
                        
                    </fieldset>
                </h:panelGroup>
            </h:form>
        </f:view>
    </body>
</html>
